<template>
    <div class="navigator">
        <div class="wrap">
            <p class="backWrap" @click="handleClick">
                <i class="goBackIcon"></i>
                <!-- <span class="backTxt">返回</span> -->
            </p>
            <!-- <p class="backWrap">
                <i class="goBackIcon"></i>
                <span>返回</span>
            </p> -->
        </div>
    </div>
</template>
<script>
export default {
    methods:{
        handleClick(){
            // 点击返回上一页
            this.$router.go(-1);
        }
    }
}
</script>
<style lang="less" scoped>
.navigator {
    height: 80px;
    position: fixed;
    z-index:999999;
    top:0;
    left:0;
    width:100%;
    background:#fff;
    .wrap {
        height: 100%;
        display: flex;
        justify-content: space-between;
        .backWrap {
            height: 100%;
            padding: 0 30px;
            display: flex;
            align-items: center;
            .goBackIcon {
                position: relative;
                display: inline-block;
                width: 10px; /*no*/
                height: 10px; /*no*/
                &:after,
                &:before {
                    display: inline-block;
                    content: "";
                    position: absolute;
                    top: 8px;
                    width: 2px; /*no*/
                    height: 10px; /*no*/
                    background: #000;
                    border-radius: 2px;
                    transform: rotate(-45deg);
                    transform-origin: 2px 1px;
                }
                &:after {
                    transform: rotate(-135deg);
                }
            }
            .backTxt {
                margin-left: 10px;
                font-size: 24px;
            }
        }
    }
}
</style>